package com.walming.generator.common.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 时间范围控件
 *
 * @author walming
 * @date 2020-07-09 13:57
 */
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = DecimalValidator.class)
public @interface Decimal {

    String message() default "小数格式错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
